package turing.forum.repository.po;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class VisitRecord {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 被访问用户id
     */
    @TableField(value = "user_id")
    private Long user;
    /**
     * 访问者id
     */
    @TableField(value = "visitor_id")
    private Long visitor;

    @Version
    private Integer version;
    @TableLogic
    private Integer deleted;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
